/**
 * 
 */
package kr.co.insoft.auth.repository.auth.impl;

import kr.co.insoft.auth.mapper.auth.AuthoritiesMapper;
import kr.co.insoft.auth.model.members.JoinFormModel;
import kr.co.insoft.auth.repository.auth.AuthoritiesRepository;
import kr.co.insoft.framework.exceptions.ExceptionCode;
import kr.co.insoft.framework.exceptions.RepositoryException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
@Repository
public class AuthoritiesRepositoryImpl implements AuthoritiesRepository {

	@Autowired
	AuthoritiesMapper authoritiesMapper;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * kr.co.insoft.auth.repository.auth.AuthoritiesRepository#addUserMenuAuth
	 * (kr.co.insoft.auth.model.members.JoinFormModel)
	 */
	@Override
	public void addUserMenuAuth(JoinFormModel joinFormModel)
			throws RepositoryException {
		try {
			authoritiesMapper.addUserMenuAuth(joinFormModel);
		} catch (Exception e) {
			throw new RepositoryException(ExceptionCode.REPOSITORY_EXCEPTION, e);
		}
	}
}
